package JZ;

/**
 * @Classname JZ27
 * @Description // https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/ 树 一次ac  后序遍历
 * @Date 2021/4/21 14:46
 * @Created by yin
 */
public class JZ27 {
    public TreeNode mirrorTree(TreeNode root) {
        if(root==null) return null;
        mirrorTree(root.left);
        mirrorTree(root.right);
        TreeNode temp = root.left;
        root.left = root.right;
        root.right = temp;
        return root;
    }
}
